package com.ereach.person;

public class Employee extends Person {
    private double baseSalary;
    private double hourlyRate;
    private double extraHours;

    public Employee() {
        super();
    }

    public Employee(String name, String gender, double baseSalary, double hourlyRate, double extraHours) {
        super(name, gender);
        this.baseSalary = baseSalary;
        this.hourlyRate = hourlyRate;
        this.extraHours = extraHours;
    }

    public double getBaseSalary() {
        return baseSalary;
    }

    public void setBaseSalary(double baseSalary) {
        this.baseSalary = baseSalary;
    }

    public double getHourlyRate() {
        return hourlyRate;
    }

    public void setHourlyRate(double hourlyRate) {
        this.hourlyRate = hourlyRate;
    }

    public double getExtraHours() {
        return extraHours;
    }

    public void setExtraHours(double extraHours) {
        this.extraHours = extraHours;
    }

    @Override
    public String toString() {
        return "Person { " + super.toString() + ", baseSalary: " + baseSalary + ", hourlyRate: " + hourlyRate + ", extraHours: " + extraHours + " }";
    }
}
